package org.autumn.shiro;

import org.autumn.util.DigestsUtil;

import java.util.Arrays;
import java.util.List;

public class UserService {

    public DigestsUtil.Digests getPasswordByName(String name){
        return DigestsUtil.encryption("123");
    }

    public List<String> getPermissionByName(String name){
        return Arrays.asList("sys:*","log:add");
    }


    public List<String> getRoleByName(String name){
        return Arrays.asList("admin");
    }
}
